package com.jkozniewski.geom
{
	public class GeomUtil {
		
		public static function getSymmetryPoint( lx0:Number, ly0:Number, lx1:Number, ly1:Number, px:Number, py:Number ):Object {
			var dx:Number = lx1 - lx0;
			var dy:Number = ly1 - ly0;
			var div:Number = ( dx * dx + dy * dy ) / ( ( lx0 - px ) * ( ly1 - py ) - ( ly0 - py ) * ( lx1 - px ) ) / 2;
			return { x: px + dy / div, y: py - dx / div };
		}
		
		
	}
}